Skip to content

feat: make blockNumberOrTagOrHash a required parameter for eth_getStorageAt (#3839) #3879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mwb-al
Copy link
Contributor

@mwb-al mwb-al commented Jun 25, 2025

Description:

This PR updates the eth_getStorageAt method to require the blockNumberOrTagOrHash parameter, aligning it with the Ethereum OpenRPC specification. It also adjusts validation rules, method signature, and tests to enforce this requirement.

Related issue(s):

Fixes #3839

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

…StorageAt` (hiero-ledger#3839)

Signed-off-by: Michał Walczak <michal.walczak@arianelabs.com>
@arianejasuwienas arianejasuwienas dismissed their stale review June 26, 2025 08:06

Let's collect two other approvals anyway.

@@ -2016,22 +2016,18 @@ describe('RPC Server', function () {
}
});

it('validates parameter 2 is valid block tag', async function () {
it('validates parameter 2 exists', async function () {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Align eth_getStorageAt parameter validation with Ethereum's OpenRPC specification
2 participants